﻿namespace Deppton.Repositories
{
    using System.Collections.Generic;
    using Deppton.Model;

    /// <summary>
    /// Surveys repository interface.
    /// </summary>
    public interface ISurveysRepository
    {
        /// <summary>
        /// Finds the pending surveys for the given user.
        /// </summary>
        /// <param name="userName">The username.</param>
        /// <returns>The pending surveys for the given user.</returns>
        ICollection<Survey> FindPendingSurveysByUser(string userName);

        /// <summary>
        /// Saves the specified survey.
        /// </summary>
        /// <param name="survey">The survey to save.</param>
        void Save(Survey survey);
    }
}
